//
//  xsudokuViewController.m
//  xsudoku
//
//  Created by richard_local on 27/08/13.
//  Copyright (c) 2013 ierdre.com. All rights reserved.
//

#import "xsudokuViewController.h"

@interface xsudokuViewController ()

@end

@implementation xsudokuViewController
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    //self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    self.banner.delegate = self;
    if (self) {
        NSLog(@"%@",self.banner);
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [self.testLabel setText:@"NEW TEST"];
    [super viewDidLoad];
    self.banner.delegate = self;
    
    
    NSLog(@"\n\n----- \n %@  \n %@" , self.banner,self.banner.delegate);
    //[self.view addSubview:myView];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewDidUnload {
    /*[self setBanner:nil];
    [self setBanner:nil];*/
    [super viewDidUnload];
}



//BANNER




- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave
{
    NSLog(@"bannerViewActionShouldBegin");
    return YES;
}

- (void)bannerViewDidLoadAd:(ADBannerView *)banner
{
    NSLog(@"bannerViewDidLoadAd");
}

- (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error
{
    NSLog(@"didFailToReceiveAdWithError");
}

- (void)bannerViewActionDidFinish:(ADBannerView *)banner {
    NSLog(@"bannerViewActionDidFinish");
}



@end
